package com.yuxi.juanzi.topic3;

public class Calculaion {
    private int x;
    private int y;

    public Calculaion(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public Calculaion() {
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public void add(){
        System.out.println(x+"+"+y+"="+(x+y));
    }
    public void sub(){
        System.out.println(x+"-"+y+"="+(x-y));
    }
    public void times(){
        System.out.println(x+"*"+y+"="+(x*y));
    }
    public void div(){
        System.out.println(x+"/"+y+"="+(x/y));
    }
}
